$design-width: 750; //设计稿宽度

@function p2r($px) {
  @return ($px*10/$design-width)*1rem;
}

@function r2p($rem) {
  @return ($rem*$design-width/10)*1px;
}